﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Threading;

namespace chat_client_sp
{
    /// <summary>
    /// Ping is a LTV message, but without Value 
    /// 0x00000006  - length = 4
    /// 0x00000001  - type (4byte)
    /// </summary>
    public class PongMessage : BaseMessage
    {
        /// <summary>
        /// ping message 
        /// </summary>
        public PongMessage()
        {
            this.Length = 4;
            this.MessageType = (int)MessageTypeEnum.PONG; 
        }
    }


    public class PongMsgUnitTest
    {
        public static void TestConstruction()
        {
            Console.WriteLine("TestConstruction");
            PongMessage pong = new PongMessage();
            pong.Dump();
            foreach (byte b in pong.GetBytes())
            {
                Console.Write("0x{0:X}, ", b);
            }
            Console.WriteLine();

        }
    }
}
